package cn.wolfcode.rbac.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Permission {
    private Long id;

    private String name;

    private String expression;

    public Permission(String name, String expression) {
        this.name = name;
        this.expression = expression;
    }
}